package com.fruit.pojo.user.sysmsg;

import java.io.Serializable;

/**
 * 站内消息POJO
 *
 * @author Administrator
 */
public class SysMessage implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;

    private String title;

    private String content;

    private Integer userId;

    private String type;

    private String state;

    private String createTime;

    private String updateTime;

    private String msgType;

    private String params;
    private String url;
    private String redirect;
    private String redirectType;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getRedirect() {
        return redirect;
    }

    public void setRedirect(String redirect) {
        this.redirect = redirect;
    }

    public String getRedirectType() {
        return redirectType;
    }

    public void setRedirectType(String redirectType) {
        this.redirectType = redirectType;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state == null ? null : state.trim();
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime == null ? null : createTime.trim();
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? null : updateTime.trim();
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    @Override
    public String toString() {
        StringBuffer str = new StringBuffer();
        str.append("[");
        str.append("id=" + id);
        str.append(",title=" + title);
        str.append(",content=" + content);
        str.append(",userId=" + userId);
        str.append(",type=" + type);
        str.append(",msgType=" + msgType);
        str.append(",state=" + state);
        str.append(",createTime=" + createTime);
        str.append(",updateTime=" + updateTime);
        str.append("]");
        return str.toString();
    }
}